﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Collections;
using System.Runtime.Serialization;

namespace EntityLibrary
{
    [System.ComponentModel.DesignerCategory("Code")]
    [SerializableAttribute]
    public class YBFWSSInfoData : DataSet
    {


        public const string YB_FWSS_INFO_DW = "DW";
        public const string YB_FWSS_INFO_FWSSBM = "FWSSBM";
        public const string YB_FWSS_INFO_FWSSMC = "FWSSMC";
        public const string YB_FWSS_INFO_PRE0 = "PRE0";
        public const string YB_FWSS_INFO_PRE1 = "PRE1";
        public const string YB_FWSS_INFO_PRE2 = "PRE2";
        public const string YB_FWSS_INFO_PRE3 = "PRE3";
        public const string YB_FWSS_INFO_PRE4 = "PRE4";
        public const string YB_FWSS_INFO_PRE5 = "PRE5";
        public const string YB_FWSS_INFO_PRE6 = "PRE6";
        public const string YB_FWSS_INFO_PRE7 = "PRE7";
        public const string YB_FWSS_INFO_PRE8 = "PRE8";
        public const string YB_FWSS_INFO_PRE9 = "PRE9";
        public const string YB_FWSS_INFO_PRICE = "PRICE";
        public const string YB_FWSS_INFO_PYZJM = "PYZJM";
        public const string YB_FWSS_INFO_REMARK = "REMARK";
        public const string YB_FWSS_INFO_SFLB = "SFLB";
        public const string YB_FWSS_INFO_WBZJM = "WBZJM";
        public const string YB_FWSS_INFO_XMDJ = "XMDJ";



        private DataTable table;
        private DataColumn col;
        private ArrayList list;



        private YBFWSSInfoData(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }

        public YBFWSSInfoData()
        {

            BuildDataTables();
        }

        //构建业务实体类的结构。
        private void BuildDataTables()
        {

            table = new DataTable("YB_FWSS_INFO");

            table.Columns.Add("DW", typeof(System.String));
            table.Columns.Add("FWSSBM", typeof(System.String));
            table.Columns.Add("FWSSMC", typeof(System.String));
            table.Columns.Add("PRE0", typeof(System.String));
            table.Columns.Add("PRE1", typeof(System.String));
            table.Columns.Add("PRE2", typeof(System.String));
            table.Columns.Add("PRE3", typeof(System.String));
            table.Columns.Add("PRE4", typeof(System.String));
            table.Columns.Add("PRE5", typeof(System.String));
            table.Columns.Add("PRE6", typeof(System.String));
            table.Columns.Add("PRE7", typeof(System.String));
            table.Columns.Add("PRE8", typeof(System.String));
            table.Columns.Add("PRE9", typeof(System.String));
            table.Columns.Add("PRICE", typeof(System.String));
            table.Columns.Add("PYZJM", typeof(System.String));
            table.Columns.Add("REMARK", typeof(System.String));
            table.Columns.Add("SFLB", typeof(System.String));
            table.Columns.Add("WBZJM", typeof(System.String));
            table.Columns.Add("XMDJ", typeof(System.String));
            list = new ArrayList();

            col = table.Columns["FWSSBM"];
            list.Add(col);


            table.PrimaryKey = (DataColumn[])list.ToArray(typeof(DataColumn));
            this.Tables.Add(table);



        }



    }
}
